<?php
	//Session starten
session_start();

if(!isset($_SESSION['user_id']))
{
	$_SESSION['user_id'] = 0;
	$_SESSION['user_name'] = '';
}

if(isset($_POST['action']) && $_POST['action'] == 'logout') {
		session_unset();
        session_destroy();
		unset($_SESSION['user_id']);
		unset($_SESSION['user_name']);
		unset($_SESSION['user_email']);
}



?>